import { createApp } from "vue";
import App from './App.vue';
import router from '@/routers'
import pinia from '@/stores'

import 'element-plus/dist/index.css'
import "uno.css"
import "virtual:svg-icons-register";

// import { componentsPlugin } from '@/components'
import { directivePlugin } from "@/directive";

// import guyan_ym_ui from 'guyan-ym-ui'
import 'guyan-ym-ui/dist/index.css'

const app = createApp(App);

// 注册路由
app.use(router);

// 注册状态管理
app.use(pinia);

// 注册全局组件
// app.use(componentsPlugin)

// 注册全局指令
app.use(directivePlugin)

// 注册第三方组件
// app.use(guyan_ym_ui)

app.mount('#app');